﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HikVisionTool.Model
{
    public class HikBarcodeStatus
    {
        public int id { get; set; }
        public string lifnr { get; set; }
        public string barcd { get; set; }
        public string wknum { get; set; }
        public string next_pline { get; set; }
        public string next_processid { get; set; }
        public string wkposition { get; set; }
        public string pline { get; set; }
        public string processid { get; set; }
        public string funct { get; set; }
        public DateTime arrivetime { get; set; }
        public string crname { get; set; }
        public DateTime crtime { get; set; }
        public string chname { get; set; }
        public DateTime chtime { get; set; }
        public string update_flag { get; set; }
        public int status { get; set; }
    }
    public class CheckDataModel
    {
        public class ScanOk
        {
            public string pk_id { get; set; }
            public string lifnr { get; set; }
            public string wknum { get; set; }
            public string barcd { get; set; }
            public string pline { get; set; }
            public string processid { get; set; }
            public string funct { get; set; }
            public string wkposition { get; set; }
            public string barcd_batch { get; set; }
            public string shift { get; set; }
            public string crname { get; set; }
            public DateTime crtime { get; set; }
            public string update_flag { get; set; }
            public int status { get; set; }
        }

        public class HikCheck
        {
            public string pk_id { get; set; }
            public string lifnr { get; set; }
            public string wknum { get; set; }
            public string barcd { get; set; }
            public string pline { get; set; }
            public string processid { get; set; }
            public string funct { get; set; }
            public string wkposition { get; set; }
            public string ck_start_dt { get; set; }
            public string ck_end_dt { get; set; }
            public string crname { get; set; }
            public DateTime crtime { get; set; }
            public string filename { get; set; }
            public string update_flag { get; set; }
            public int status { get; set; }
            public string stream { get; set; }
            public List<FirstDetail> DetailFirst { get; set; }
            public List<SecondDetail> DetailSecond { get; set; }
        }

        public class FirstDetail
        {
            public long id { get; set; }
            public string pk_id { get; set; }
            public string lifnr { get; set; }
            public int seqfid { get; set; }
            public string ck_item_name { get; set; }
            public string ck_item_desc { get; set; }
            public string funct { get; set; }
            public string ck_start_dt { get; set; }
            public string ck_end_dt { get; set; }
            public string crname { get; set; }
            public DateTime crtime { get; set; }
            public int status { get; set; }
            public string update_flag { get; set; }
        }

        public class SecondDetail
        {
            public long id { get; set; }
            public string pk_id { get; set; }
            public string lifnr { get; set; }
            public int seqfid { get; set; }
            public int seqsid { get; set; }
            public string ck_item_type { get; set; }
            public string ck_item_name { get; set; }
            public string ck_item_desc { get; set; }
            public string funct { get; set; }
            public string ck_start_dt { get; set; }
            public string ck_end_dt { get; set; }
            public string crname { get; set; }
            public DateTime crtime { get; set; }
            public string update_flag { get; set; }
            public int status { get; set; }
        }
    }
}
